def count_sort(li,max_length=100):
    count = [0 for i in range(max_length+1)]
    for val in li:
        count[val] += 1
    li.clear()
    for index,value in count:
        for i in range(value):
            li.append(index)